go to card "Homer" in stack "WhooshButton" -- your changes go here
set lockscreen to false
hide button "cover"
set hilite of button "DONE!" to true
wait 20 ticks
set hilite of button "DONE!" to false
wait 20 ticks
set hilite of button "DONE!" to true
wait 20 ticks
set hilite of button "DONE!" to false
wait 20 ticks
set hilite of button "DONE!" to true
wait 20 ticks
show button "cover"
end mouseUp
-- part 6 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=138 top=169 right=198 bottom=251
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: WhooshButton
----- HyperTalk script -----
on mouseUp
visual dissolve
go to stack "WhooshButton" -- your stack name goes here
end mouseUp
-- part 2 (field)
-- low flags: 01
-- high flags: 0007
-- rect: left=135 top=165 right=312 bottom=478
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name:
-- part 3 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=23 top=273 right=312 bottom=131
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
visual effect dissolve
go to next card
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=23 top=246 right=269 bottom=131
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: See the Script
----- HyperTalk script -----
on mouseUp
edit script of button "WHOOSH"
end mouseUp
-- part 5 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=444 top=128 right=166 bottom=485
-- title width / last selected line: 0
-- icon id / first selected line: 20098 / 20098
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
visual effect iris close
go home
end mouseUp
-- part 10 (button)
-- low flags: 00
-- high flags: E002
-- rect: left=23 top=192 right=242 bottom=130
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: DONE!
-- part 9 (button)
-- low flags: 00
-- high flags: 0001
-- rect: left=22 top=191 right=243 bottom=132
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: cover
-- part contents for card part 2
----- text -----
AUTOMATES OPERATION OF PLACING A BUTTON ON THE HOME CARD POINTING TO THE CURRENT STACK.
----------------------------------------
To use it: The easiest way to use WhooshButton is to copy this entire card into your own stack. Then you can customize the screen, button names and sizes etc., to fit your stack. You will need to change card and stack names in the "go to card" line of the "WHOOSH" button script. You'll also need to rename the stack to load in the WhooshButton button script (the WhooshButton itself is hidden behind this field).
If you wish to to totally customize your button whooshing, you may alternatively copy only the button "WHOOSH" into your stack, and design the rest yourself. Note that on this card a blank opaque button hides the "done" alert button until the whoosh operation is completed. Needless to say, there are many different ways to accomplish this--the method used here is only one.
Here at the Acme Dot Company, sharing stackware tools gives us a lot of pleasure. Hope to see home buttons whooshing in your stacks soon.